package interfazgrafikoak;

import java.io.*;
import javax.swing.*;


public class FitxategiHautatzaile extends JFrame{

	public static void main(String[] args){

	FitxategiHautatzaile frame = new FitxategiHautatzaile();
	
    String filename = File.separator+"tmp";
    JFileChooser fc = new JFileChooser(new File(filename));
    
    // Show open dialog; this method does not return until the dialog is closed
    fc.showOpenDialog(frame);
    File selFile = fc.getSelectedFile();
    System.out.println("Bat:" + selFile.getName());
    
    // Show save dialog; this method does not return until the dialog is closed
    fc.showSaveDialog(frame);
    selFile = fc.getSelectedFile();
    System.out.println("Bi:" + selFile.getName());

	}
}
